package com.swancloud.api.version;

import com.swancloud.common.RestService;
import com.swancloud.model.compute.Version;

import java.util.List;

/**
 * This interface defines all methods for the manipulation of server actions
 *
 * @author sujit sah
 *
 */
public interface VersionService extends RestService {
    /**
     * This fetches all the information about all known major API versions in the deployment.
     * Links to more specific information will be provided for each API version, as well as information about supported min and max microversions.
     */
    List<? extends Version> list();

    /**
     * Gets the server action associated with specific request id for the specified server
     *
     * @param serverId  the id of server
     * @param requestId of specific action for the specified server
     * @return the server action detail
     */
    Version get();

}
